package com.learn.springcloud.feignparambindingconsumer.controller;

import com.learn.springcloud.feignparambindingconsumer.service.FeignTestClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Time : 2018/8/8 19:46
 * @Version : 1.0
 */
@RestController
public class FeignQuickStartConsumer {

    @Autowired
    private FeignTestClient feignTestClient;

    @RequestMapping("/feign/quick/start/consumer/say/hello/{name}")
    public String sayHello(@PathVariable(name = "name") String name){
        return feignTestClient.sayHello(name);
    }

}
